#ifndef NVGPUCLOCK_H
#define NVGPUCLOCK_H

#include <QObject>
#include <string>
#include "nvml.h"
#include <QTimer>

class NvMemClock : public QObject {
    Q_OBJECT
    Q_PROPERTY(QString getMemClock READ getMemClock NOTIFY memClockChanged)

public:
    explicit NvMemClock(QObject *parent = nullptr);
    ~NvMemClock();
    QString getMemClock() const;

private:
    void updateUtilization();
    QTimer *timer = nullptr;

Q_SIGNALS:
    void memClockChanged();
};

#endif
